package com.server.server_a10.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Room{
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private long id;

    @TableField(value = "name")
    private String name;
    @TableField(value = "home_id")
    private long homeId;

    @TableField(value = "is_connect")
    private int isConnect;

    @TableField(exist = false)
    private List<Equipment> equipments;

    private int equipment_count;

    public Room() {
    }

    public Room(Long id, String name, long homeId) {
        this.id = id;
        this.name = name;
        this.homeId = homeId;
    }
}
